%% Make an ASL eye object
clear
clear classes
clc

qm = dotsTheQueryablesManager.theObject;
et = qm.newObject('dotsQueryableEyeASL');
et.inputRect = [-13.49 10.95 13.49.*2 -10.95.*2]*100;
et.xyRect = [-12 -10 24 20];
et.sampleFrequency = 120;
et.initialize;

%% Mess with phenomenons
temp = et.getPhenomenonTemplate;
inBox = dotsPhenomenon.rectangle(temp, 'xPos', 'yPos', [-2 -2 4 4], 'in');
et.addClassificationInGroupWithRank(inBox, 'in the box', 'sandbox', 1);
et.activeClassificationGroup = 'sandbox';

%% Show what it can do
% cursor should change color depending on phenomenon
topsDataLog.flushAllData;
et.plotData;

et.logAllData;
topsDataLog.writeDataFile;